import django_filters
from .models import *

class DictFilter(django_filters.rest_framework.FilterSet):
    """过滤类"""

    dictTypeKey = django_filters.CharFilter(field_name='dictType__key')

    class Meta:
        model = Dict
        fields = '__all__'